
#ifndef FRACTURED_MESH_H
#define FRACTURED_MESH_H

#include "Vec4.h"
#include "Aabb.h"
#include "Model.h"
#include "Geometry.h"

#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>


class Model;
using namespace std;


class FracturedMesh
{
	
public:
	
	FracturedMesh();	

	void render(float timestep);
	
	vector<Geometry> m_fracturePieceGeometries;
	
	struct Voxelization* m_voxelization;
	
	class KdTree* m_meshKdTree;
	
	Model* m_referenceModel;
	
	float m_time;
	
	vector<Vec4> m_spinAxes;
	
	vector<Aabb> m_initialAabbs;
	
		
};


#endif // FRACTURED_MESH_H